/**
 * 
 */
package com.baijia.tianxiao.push.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author leiruiqi
 *
 */
public enum PushCodeEnum {
	
	bind_invalid_parameter,
	
	bind_no_permition,
	
	bind_no_found,
	
	;
	
	public static PushCodeEnum getByName(String name){
		for(PushCodeEnum pushCode:PushCodeEnum.values()){
			if(StringUtils.equals(pushCode.name(), name)){
				return pushCode;
			}
		}
		return null;
	}

}
